<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="/views/common/include/taglib.jsp"%>
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/sectionparent.css" source="widget" />
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/admin.css" source="widget" />
<section>
	<div style="height: 40px; line-height: 40px;">
		<div class="forword_area"></div>
		<div class="location">当前位置：${sessionScope.currcent_position}</div>
	</div>
	<hr>
	<div class="panel panel-default" style="height:auto">
		<div class="editTitle">
			<div style="height: 41px; width: 190px; float: left;">
				<img style="float: left; margin-left: 37px; margin-top: 9.5px;"
					src="${ctx}/images/new_edit.png" />
				<h4>社区政务详情</h4>
			</div>
			<div>
				<a style="float: right; margin-right: 20px; margin-top: -2px;"
					title="关闭" onclick="cancel();"><img
					src="${ctx}/images/new_close.png" /></a>
			</div>
		</div>

		<div id="replyList" class="right" style="margin-top: -10px;">
			<div class="modal-header">
				<div id="form" class="form"
					style="min-height: 50px; margin-top: 10px; border-top: 1px solid #edeef3; font-size: 14px;">
					<div class="itemEdit"
						style="border-bottom: 1px solid #CBD5DD; height: 150px;">
						<span class="col-sm-1 editlableDetail"
							style="height: 150px; font-size: 14px;">封面图片：</span>
						<div class="fldetail-4r">
							<c:if test="${cellManual.logo == null || cellManual.logo == ''}">
								<img id="preview3"
									style="width: 100px; height: 100px; float: left;"
									title="快上传封面图片吧" src="${ctx}/images/default.jpg" />
							</c:if>
							<c:if test="${cellManual.logo != null && cellManual.logo != ''}">
								<img id="preview3"
									style="width: 100px; height: 100px; float: left;"
									src="${sessionScope.image_logo}${cellManual.logo}" />
							</c:if>
						</div>
					</div>
					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">小区名：</span>
						<div class="fldetail-4l">
							<c:forEach items="${cellInfos}" var="item" varStatus="cStatus">
								<c:if test="${item.id == manualcellId}">
							${item.cellName}
							</c:if>
							</c:forEach>
						</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">标题：</span>
						<div class="fldetail-4r">${cellManual.title}</div>
					</div>
					<div class="itemEdit" style="border-bottom: 1px solid #CBD5DD;">
						<%-- <span class="col-sm-1 editlableDetail" style="font-size:14px;">副标题：</span>
							<div class="fldetail-4l">${cellManual.subTitle}</div> --%>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">关键字：</span>
						<div class="fldetail-4l">${cellManual.keyWord}</div>
						<span class="col-sm-1 editlableDetail" style="font-size: 14px;">排序：</span>
						<div class="fldetail-4r">${cellManual.sort}</div>
					</div>
					<%-- <div class="itemEdit" style="border-bottom:1px solid #CBD5DD;height:100px">
							<span class="col-sm-1 editlableDetail" style="font-size:14px;height:100px">内容：</span>
							<div class="fldetail-4t"style=" float: left;width: 78%; padding-top:8px;height: 29px;margin-left: 20px;">${cellManual.content }</div>
						</div> --%>
					<table id="contentDiv"
						style="border: 1px solid #CBD5DD; border-top: none; width: 100%; height: 200px;"
						cellspacing="0" cellpadding="0">
						<tr>
							<td id="contentSpan"
								style="color: #504949; font-size: 14px; width: 13.9%; border-right: 1px solid #edeef3; background-color: #EAFBFC; text-align: right; height: 37px; line-height: 37px; vertical-align: text-top;">内容：</td>
							<td
								style="width: 78%; padding: 8px 20px; vertical-align: text-top;">${cellManual.content}</td>
						</tr>
					</table>
				</div>
				<div style="text-align: center;">
					<button style="margin-top: 20px;" class="buttonCancle"
						onclick="cancel();">返&nbsp;&nbsp;回</button>
				</div>
			</div>
		</div>
	</div>
</section>
<%@include file="/views/common/footer.jsp"%>

<script
	src="${ctx}/js/controllers/news/cellmanual/CellManualEditController.js"
	type="text/javascript">
	
</script>
<script type="text/javascript">
	var ctx = '${ctx}';
	setCtx(ctx);

	//实现选中取消切换图片
	$("tbody td>img").toggle(function() {
		$(this).attr("src", "${ctx }/images/tables/honggou.png");
		//$(this).parents("tr").children().each(function(){
		// $(this).css("background","#D3F0F1");
		//});    
	}, function() {
		$(this).attr("src", "${ctx }/images/tables/wugou.png");
		//$(this).parents("tr").children().each(function(){
		//$(this).css("background","");
		//});
	});

	//实现全选切换所有选项图标
	$("#all").toggle(function() {
		$(this).attr("src", "${ctx }/images/tables/honggou.png");
		$("tbody td>img").attr("src", "${ctx }/images/tables/honggou.png");
	}, function() {
		$(this).attr("src", "${ctx }/images/tables/wugou.png");
		$("tbody td>img").attr("src", "${ctx }/images/tables/wugou.png");
	});
</script>
